﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Model;
using Repository;
using WZVTC.SoftDev.DDDFW.Domain.Core;
using WZVTC.SoftDev.DDDFW.EntityServices;
using WZVTC.SoftDev.DDDFW.Domain.Specification;

namespace EntityServices
{
     public  class 学院Service:BaseServices<学院>
    {
         public 学院Service(IUnitOfWork _context,学院Repository _Repository)
             :base (_context,_Repository)
            {
            }
         public 学院 GetById(int id)
         {
            ISpecification<学院> sp=new DirectSpecification<学院>(x => x.Id == id);
             return base.GetByCondition(sp);
         }
    }
}
